//
//  KDSegmentPager.h
//  DCTCustomer
//
//  Created by 姚宗超 on 14-9-23.
//  Copyright (c) 2014年 姚宗超. All rights reserved.
//

#import "MPBaseViewController.h"
#import "HMSegmentedControl.h"

@interface KDSegmentPager : MPBaseViewController<UIPageViewControllerDataSource,UIPageViewControllerDelegate>
@property (strong, nonatomic) UIPageViewController *pageViewController;
@property (strong, nonatomic) HMSegmentedControl *pageControl;
@property (strong, nonatomic) UIView *contentContainer;
@property (nonatomic, readonly, assign) NSUInteger selectIndex;

@property (strong, nonatomic)NSMutableArray *pages;

- (void)setPageControlHidden:(BOOL)hidden animated:(BOOL)animated;
- (void)setSelectedPageIndex:(NSUInteger)index animated:(BOOL)animated;


/*! Get the selected viewcontroller
 * \returns The actual selected viewcontroller
 */
- (UIViewController *)selectedController;

/*! The control will ask from every viewcontroller an updated title string
 */
- (void)updateTitleLabels;

@end
